package com.copc.common.model.order;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.Instant;
import java.time.LocalDate;

@Getter
@Setter
@ToString
public class Coupon {

	private static final long serialVersionUID = 1L;

	/**
	 * 全平台唯一uid
	 */
	private String memberUid;

	private String phone;

	private String code;

	/**
	 * 有效期开始时间
	 */
	private LocalDate validDate;

	/**
	 * 有效期截至时间
	 */
	private LocalDate expireDate;

	/**
	 * 领取时间
	 */
	private Instant claimAt;

	/**
	 * 使用时间
	 */
	private Instant consumeAt;
//
//	/**
//	 * 状态
//	 */
//	private CouponStatus status;

	/**
	 * 红包表id
	 */
	private Long couponId;

	/**
	 * 用户实付金额
	 */
	private BigDecimal price;

	private String openId;

	private Boolean isRefund;

	private String comment;

	private String reference;

	private String itemOrderId;

	/**
	 * 验券密文
	 */
	private String secret;

	private int number;

	private Long[] cpnIdList;

	private String name;
}
